<script setup lang="ts">
import { NLayout } from 'naive-ui'
// import ReportSearch from './reportIndex.vue'
// import ReportChatView from './ReportchatIndex.vue'
import RAGView from './RAG.vue'
import { useBasicLayout } from '@/hooks/useBasicLayout'
import { useRoute } from 'vue-router';
import { ref, onMounted } from 'vue'
const { isMobile } = useBasicLayout()
const route = useRoute()
// 定义用户uuid
const user_uuid = ref(0)

onMounted(() => {
  user_uuid.value = parseInt(<string>route.query?.user_uuid)
  console.log('user_uuid', user_uuid.value);
})
</script>

<template>
  <div class="h-full dark:bg-[#24272e] transition-all" :class="[isMobile ? 'p-0' : 'p-4']">
    <div class="h-full overflow-hidden">
      <NLayout class="z-40 transition h-full" has-sider>
        <RAGView />
      </NLayout>
    </div>
  </div>
</template>
